package chen.huai.jie.spring.xmlconfig.mq.rabbitmq.receiver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class DirectExchangeQueueReceiver implements MessageListener {
    private Logger logger = LoggerFactory.getLogger(DirectExchangeQueueReceiver.class);

    public void onMessage(Message message) {
        logger.info(message.toString());
    }
}
